import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

class RegisterSuccess extends StatefulWidget {
  @override
  _RegisterSuccessState createState() => _RegisterSuccessState();
}

class _RegisterSuccessState extends State<RegisterSuccess> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: buildBody(context),
    );
  }

  Widget buildBody(BuildContext context) {
    return Column(
      children: <Widget>[
        Container(
          height: 100,
          margin: EdgeInsets.only(top: 90, left: 30, right: 30, bottom: 20),
          child: Image.asset("assets/bitmap.png"),
        ),
        Text(
          "注册成功",
          style: TextStyle(
              fontWeight: FontWeight.bold,
              fontSize: 35,
              color: Color(0xffe24a42)),
        ),
        SizedBox(
          height: 10,
        ),
        Text(
          "绑定微信号快速登录",
          style: TextStyle(fontSize: 15, color: Color(0xff959494)),
        ),
        SizedBox(
          height: 50,
        ),
        GestureDetector(
          onTap: () {
            Fluttertoast.showToast(msg: "1");
          },
          child: Container(
            margin: EdgeInsets.only(
              left: 30,
              right: 30,
            ),
            height: 50,
            alignment: Alignment.center,
            decoration: BoxDecoration(
                color: Color(0xff00df6a),
                borderRadius: BorderRadius.circular(10)),
            child: Text(
              "微信授权登录",
              textAlign: TextAlign.center,
              style: TextStyle(color: Colors.white, fontSize: 19),
            ),
          ),
        ),
        SizedBox(
          height: 30,
        ),
        GestureDetector(
          child: Container(
            alignment: Alignment.center,
            width: 150,
            height: 50,
            child: Text("跳过绑定",
                style: TextStyle(fontSize: 19, color: Color(0xff959494))),
          ),
          onTap: () {},
        )
      ],
    );
  }
}
